The “Event” popup menu is used to choose the event type. A HyperCard event supports the following event types:

• Do script

• Evaluate

Do script

The “Do script” event is used together with the “Script” field. By entering scripts in HyperTalk syntax into the “Script” field, you can have HyperCard executing these scripts during a simulation. We refer to the HyperCard manuals for further information. 

Since the “Script” field only allows very short scripts, most of the time you would be better off by writing the script inside a HyperCard stack, and then just call this script from DynRisk.

In addition to this, there are a few things you need to be aware of when writing scripts.

1) If you want to include the input value of the event in a script, use the placeholder character ‘…’. [Option-.] DynRisk will then replace the placeholder by the input value before passing the script over to HyperCard. You can use as many placeholders as you like in your scripts.

2) If you want the result value of the script (if there are one) to be passed on to the successors of the event, be sure to check the “Expect script reply” option checkbox. Otherwise the event will just pass on zero.

Evaluate

The “Evaluate” event is used to read the contents of a HyperCard field back to DynRisk. The location of the field is entered into the “Script” field, by using HyperCard syntax, e.g., as follows:

card field myField

Note that since the “Evaluate” event always returns something back to DynRisk, you do not need to check the “Expect script reply” option checkbox for this event type. In fact DynRisk will not allow you to check it.